-- GENERATED SPELL FOR [Coldmine Miner] --


function spell0_13317(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13317', 30288, 1)
end

function Sorts_13317(pUnit, Event)
local choix_sorts_13317 = math.random(0, 0)
if choix_sorts_13317 == 0 then
pUnit:RegisterEvent('spell0_13317', 1, 1)
end
end

function mob13317_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13317', math.random(1500, 3000), 1)
end

function mob13317_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13317_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13317_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13317, 1, 'mob13317_Action')
RegisterUnitEvent(13317, 2, 'mob13317_Leave')
RegisterUnitEvent(13317, 3, 'mob13317_Kill')
RegisterUnitEvent(13317, 4, 'mob13317_Die')
